package com.junzhiit.nengji.shop.bo;

import com.bainaeco.framework.base.BaseObject;

public class GoodsDetailBO extends BaseObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private String id;

	private String shopId;

	private String code;

	private String name;

	private String hint;

	private Double price;

	private Double referencePrice;

	private Integer stock;

	private Integer isOpenSku;

	private Integer isOpenMember;

	private Integer isOpenRebate;

	private Integer isFreeShipping;

	private Integer isRecommend;

	private Integer status;

	private String fileName;

	private String coverImage;

	private String standards;

	private String skuContentId;

	private Integer postageType;

	private Double postagePrice;

	private String postageTemplateId;

	private Double postageWeight;

	// 商品数量
	private Integer number;

	// 以下为新增部分
	// 是否分销
	private Integer isOpenSell;

	// 会员打折率
	private Integer discount;
//
//	// 是否门店
//	private Integer isShop;
//
//	// 是否直邮
//	private Integer isMail;
//
//	// 是否配送
//	private Integer isDistribution;
	
	//是否在运费模版配送范围内
	private boolean noSupport = true;
	
	//餐盒费
	private Double foodBoxCharge;
	
	public Double getFoodBoxCharge() {
		return foodBoxCharge;
	}

	public void setFoodBoxCharge(Double foodBoxCharge) {
		this.foodBoxCharge = foodBoxCharge;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getShopId() {
		return shopId;
	}

	public void setShopId(String shopId) {
		this.shopId = shopId;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getHint() {
		return hint;
	}

	public void setHint(String hint) {
		this.hint = hint;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Double getReferencePrice() {
		return referencePrice;
	}

	public void setReferencePrice(Double referencePrice) {
		this.referencePrice = referencePrice;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getIsOpenSku() {
		return isOpenSku;
	}

	public void setIsOpenSku(Integer isOpenSku) {
		this.isOpenSku = isOpenSku;
	}

	public Integer getIsOpenMember() {
		return isOpenMember;
	}

	public void setIsOpenMember(Integer isOpenMember) {
		this.isOpenMember = isOpenMember;
	}

	public Integer getIsOpenRebate() {
		return isOpenRebate;
	}

	public void setIsOpenRebate(Integer isOpenRebate) {
		this.isOpenRebate = isOpenRebate;
	}

	public Integer getIsFreeShipping() {
		return isFreeShipping;
	}

	public void setIsFreeShipping(Integer isFreeShipping) {
		this.isFreeShipping = isFreeShipping;
	}

	public Integer getIsRecommend() {
		return isRecommend;
	}

	public void setIsRecommend(Integer isRecommend) {
		this.isRecommend = isRecommend;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getCoverImage() {
		return coverImage;
	}

	public void setCoverImage(String coverImage) {
		this.coverImage = coverImage;
	}

	public String getStandards() {
		return standards;
	}

	public void setStandards(String standards) {
		this.standards = standards;
	}

	public String getSkuContentId() {
		return skuContentId;
	}

	public void setSkuContentId(String skuContentId) {
		this.skuContentId = skuContentId;
	}

	public Integer getPostageType() {
		return postageType;
	}

	public void setPostageType(Integer postageType) {
		this.postageType = postageType;
	}

	public Double getPostagePrice() {
		return postagePrice;
	}

	public void setPostagePrice(Double postagePrice) {
		this.postagePrice = postagePrice;
	}

	public String getPostageTemplateId() {
		return postageTemplateId;
	}

	public void setPostageTemplateId(String postageTemplateId) {
		this.postageTemplateId = postageTemplateId;
	}

	public Double getPostageWeight() {
		return postageWeight;
	}

	public void setPostageWeight(Double postageWeight) {
		this.postageWeight = postageWeight;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public Integer getIsOpenSell() {
		return isOpenSell;
	}

	public void setIsOpenSell(Integer isOpenSell) {
		this.isOpenSell = isOpenSell;
	}

	public Integer getDiscount() {
		return discount;
	}

	public void setDiscount(Integer discount) {
		this.discount = discount;
	}
//
//	public Integer getIsShop() {
//		return isShop;
//	}
//
//	public void setIsShop(Integer isShop) {
//		this.isShop = isShop;
//	}
//
//	public Integer getIsMail() {
//		return isMail;
//	}
//
//	public void setIsMail(Integer isMail) {
//		this.isMail = isMail;
//	}
//
//	public Integer getIsDistribution() {
//		return isDistribution;
//	}
//
//	public void setIsDistribution(Integer isDistribution) {
//		this.isDistribution = isDistribution;
//	}
	
	public boolean isNoSupport() {
		return noSupport;
	}

	public void setNoSupport(boolean noSupport) {
		this.noSupport = noSupport;
	}

	@Override
	public boolean equals(Object st) {
		GoodsDetailBO bo = (GoodsDetailBO) st;
		if (this.getId() == bo.getId()) {
			return true;
		} else {
			return false;
		}
	}

	@Override
	public int hashCode() {
		return this.getId().hashCode();
	}
}
